<template>
  <fieldset>
    <legend>其他组件1</legend>
    <modal :visible="isShow" @on-confirm="confirm" @on-cancel="cancel">
      <h1 slot="tip">提示</h1>
      <h2 slot="body">您作业写完了吗</h2>
    </modal>
    <button @click="open">点击打开模态框</button>
  </fieldset>
</template>
<script>
import modal from "./modal2";
import mixin from "./Mixmodal/mix";
export default {
  mixins: [mixin],
  components: {
    modal,
  },
};
</script>
